import request from '@/fetch/fetch'

export function getRegister(obj){    // 注册
    return request({
        url: '/api/web/index/register',
        method: 'post',
        data:obj
    })
}

export function getprefixcode(obj){    // 手机号前缀
    return request({
        url: '/api/web/index/prefix-code',
        method: 'post',
        data:obj
    })
}

export function getsmscode(obj){    // 发送短信验证码
    return request({
        url: '/api/web/index/send-code-all',
        method: 'post',
        data:obj
    })
}

export function getchecksmscode(obj){    // 发送短信验证码
    return request({
        url: '/api/web/index/check-mobile-code',
        method: 'post',
        data:obj
    })
}

export function getbanner(obj){    // 首页banner轮播图
    return request({
        url: '/api/web/home/banner',
        method: 'post',
        data:obj
    })
}

export function getCityVideo(obj){  // 视频及banner上城市
    return request({
        url: '/api/web/home/country-city-video',
        method: 'post',
        data:obj
    })
}

export function getrentCooperfirm(obj){  // 租期,合作企业
    return request({
        url: '/api/web/home/rent-cooperfirm',
        method: 'post',
        data:obj
    })
}

export function gethothouse(obj){  // 热门房源
    return request({
        url: '/api/web/home/hothouse',
        method: 'post',
        data:obj
    })
}

export function getonePricehouse(obj){  // 一口价房源
    return request({
        url: '/api/web/home/onePriceHouse',
        method: 'post',
        data:obj
    })
}

export function gethomesubmit(obj){  // 提交专员
    return request({
        url: '/api/web/index/home-submit',
        method: 'post',
        data:obj
    })
}

export function getfindhouse(obj){  // 委托找房
    return request({
        url: '/api/web/index/find-house',
        method: 'post',
        data:obj
    })
}

export function getcitylist(obj){  // 获取所有城市
    return request({
        url: '/api/web/list/country-city-district',
        method: 'post',
        data:obj
    })
}

export function getregionlist(obj){  // 获取城市下的区域
    return request({
        url: '/api/web/home/country-city-district-info',
        method: 'post',
        data:obj
    })
}


export function loginInstead(obj){    // 房源详情发送短信验证码
    return request({
        url: '/api/web/index/login-all',
        method: 'post',
        data:obj
    })
}